{% extends './layout.html' %}

{% block body %}
    <div>
    </div>
    <form method="post" action="{{ url_for('reader.add') }}">
    <div class="form-group">
        <label>标题</label>
        <input class="form-control" type="text" id="title" name="title" />
    </div>
    <div class="form-group">
        <label>图标</label>
        <input type="text" id="icon_name" name="icon_name" class="form-control" />
    </div>
        <div class="form-group">
            <label>图标路径</label>
            <input type="text" id="icon_url" name="icon_url" class="form-control" placeholder="icon size: 300 * 300"/>
        </div>
        <div class="form-group">
            <label>类型</label>
            <select id="media_type" name="media_type" class="form-control">
  <option value="1">音频</option>
  <option value="2">视频</option>
</select>
        </div>
        <div class="form-group">
            <label>文件路径</label>
            <input type="text" id="media_url" name="media_url" class="form-control" />
        </div>
        <div class="form-group">
            <label>描述</label>
            <textarea id="description" name="description" class="form-control" rows="5"></textarea>
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary">保存</button>
            <a href="{{ url_for('reader.index') }}" class="btn btn-link">取消</a>
        </div>
    </form>
{% endblock %}